﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace MobiMenu.Restaurant.Web
{
    /// <summary>
    ///ColumnData 的摘要说明
    /// </summary>
    [DataContract(Namespace = "MobiMenu.Restaurant.Web")]
    public class ColumnData
    {
        public ColumnData()
        { }

        [DataMember(Name = "isPrimaryKey", EmitDefaultValue=false)]
        public bool IsPrimaryKey
        {
            get;
            set;
        }

        [DataMember(Name = "field")]
        public string Field
        {
            get;
            set;
        }

        [DataMember(Name = "title")]
        public string Title
        {
            get;
            set;
        }

        [DataMember(Name = "enumType")]
        public string EnumType
        {
            get;
            set;
        }

        [DataMember(Name = "width")]
        public string Width
        {
            get;
            set;
        }

        [DataMember(Name = "isDateTime", EmitDefaultValue = false)]
        public bool IsDateTime
        {
            get;
            set;
        }

        [DataMember(Name = "isImage", EmitDefaultValue = false)]
        public bool IsImage
        {
            get;
            set;
        }

        [DataMember(Name = "hidden", EmitDefaultValue = false)]
        public bool Hidden
        {
            get;
            set;
        }
    }
}